mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-13 08:38:43 +03:00
interface: remove app-name from graph commands
This commit is contained in:
parent
9d4e10ff48
commit
3d834ffaf9
@ -26,7 +26,7 @@ export default class GraphApi extends BaseApi<StoreState> {
|
||||
return this.spider('graph-view-action', 'json', threadName, action);
|
||||
}
|
||||
|
||||
createManagedGraph(name: string, title: string, description: string, app: string, group: Path) {
|
||||
createManagedGraph(name: string, title: string, description: string, group: Path) {
|
||||
const associated = { group: resourceFromPath(group) };
|
||||
|
||||
const resource = makeResource(`~${window.ship}`, name);
|
||||
@ -35,13 +35,12 @@ export default class GraphApi extends BaseApi<StoreState> {
|
||||
resource,
|
||||
title,
|
||||
description,
|
||||
app,
|
||||
associated
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
createUnmanagedGraph(name: string, title: string, description: string, app: string, policy: Enc<GroupPolicy>) {
|
||||
createUnmanagedGraph(name: string, title: string, description: string, policy: Enc<GroupPolicy>) {
|
||||
|
||||
const resource = makeResource(`~${window.ship}`, name);
|
||||
return this.viewAction('graph-create', {
|
||||
@ -49,19 +48,17 @@ export default class GraphApi extends BaseApi<StoreState> {
|
||||
resource,
|
||||
title,
|
||||
description,
|
||||
app,
|
||||
associated: { policy }
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
joinGraph(ship: Patp, name: string, app: string) {
|
||||
joinGraph(ship: Patp, name: string) {
|
||||
const resource = makeResource(ship, name);
|
||||
return this.viewAction('graph-join', {
|
||||
join: {
|
||||
resource,
|
||||
ship,
|
||||
app
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -75,14 +72,13 @@ export default class GraphApi extends BaseApi<StoreState> {
|
||||
});
|
||||
}
|
||||
|
||||
groupifyGraph(ship: Patp, name: string, app: string, toPath?: string) {
|
||||
groupifyGraph(ship: Patp, name: string, toPath?: string) {
|
||||
const resource = makeResource(ship, name);
|
||||
const to = toPath && resourceFromPath(toPath);
|
||||
|
||||
return this.viewAction('graph-groupify', {
|
||||
groupify: {
|
||||
resource,
|
||||
app,
|
||||
to
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user