Consolidate all the work thus far
This commit is contained in:
parent
31cca5e0f2
commit
98b59fb217
26 changed files with 337 additions and 274 deletions
|
@ -94,4 +94,14 @@ export enum Action {
|
|||
* Trigged after the phase of the right panel is set. Should be used with AfterRightPanelPhaseChangePayload.
|
||||
*/
|
||||
AfterRightPanelPhaseChange = "after_right_panel_phase_change",
|
||||
|
||||
/**
|
||||
* Requests that the AppTile deletes the widget. Should be used with the AppTileActionPayload.
|
||||
*/
|
||||
AppTileDelete = "appTile_delete",
|
||||
|
||||
/**
|
||||
* Requests that the AppTile revokes the widget. Should be used with the AppTileActionPayload.
|
||||
*/
|
||||
AppTileRevoke = "appTile_revoke",
|
||||
}
|
||||
|
|
23
src/dispatcher/payloads/AppTileActionPayload.ts
Normal file
23
src/dispatcher/payloads/AppTileActionPayload.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
Copyright 2020 The Matrix.org Foundation C.I.C.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import { ActionPayload } from "../payloads";
|
||||
import { Action } from "../actions";
|
||||
|
||||
export interface AppTileActionPayload extends ActionPayload {
|
||||
action: Action.AppTileDelete | Action.AppTileRevoke;
|
||||
widgetId: string;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue