Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3246728
D9806.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D9806.diff
View Options
diff --git a/lib/actions/keyserver-actions.js b/lib/actions/keyserver-actions.js
--- a/lib/actions/keyserver-actions.js
+++ b/lib/actions/keyserver-actions.js
@@ -2,4 +2,6 @@
const addKeyserverActionType = 'ADD_KEYSERVER';
-export { addKeyserverActionType };
+const removeKeyserverActionType = 'REMOVE_KEYSERVER';
+
+export { addKeyserverActionType, removeKeyserverActionType };
diff --git a/lib/types/keyserver-types.js b/lib/types/keyserver-types.js
--- a/lib/types/keyserver-types.js
+++ b/lib/types/keyserver-types.js
@@ -33,6 +33,10 @@
+newKeyserverInfo: KeyserverInfo,
};
+export type RemoveKeyserverPayload = {
+ +keyserverAdminUserID: string,
+};
+
export const keyserverInfoValidator: TInterface<KeyserverInfo> =
tShape<KeyserverInfo>({
cookie: t.maybe(t.String),
diff --git a/lib/types/redux-types.js b/lib/types/redux-types.js
--- a/lib/types/redux-types.js
+++ b/lib/types/redux-types.js
@@ -42,7 +42,11 @@
SetCalendarDeletedFilterPayload,
} from './filter-types.js';
import type { IntegrityStore } from './integrity-types.js';
-import type { KeyserverStore, AddKeyserverPayload } from './keyserver-types.js';
+import type {
+ KeyserverStore,
+ AddKeyserverPayload,
+ RemoveKeyserverPayload,
+} from './keyserver-types.js';
import type { LifecycleState } from './lifecycle-state-types.js';
import type {
FetchInviteLinksResponse,
@@ -1236,6 +1240,10 @@
| {
+type: 'ADD_KEYSERVER',
+payload: AddKeyserverPayload,
+ }
+ | {
+ +type: 'REMOVE_KEYSERVER',
+ +payload: RemoveKeyserverPayload,
};
export type ActionPayload = ?(Object | Array<*> | $ReadOnlyArray<*> | string);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 1:41 AM (20 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2496021
Default Alt Text
D9806.diff (1 KB)
Attached To
Mode
D9806: [lib] introduce removeKeyserverActionType
Attached
Detach File
Event Timeline
Log In to Comment