|
@@ -87,6 +87,14 @@ export const clearTopicMessages =
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+export const clearTopicsMessages =
|
|
|
+ (clusterName: ClusterName, topicsName: TopicName[]): PromiseThunkResult =>
|
|
|
+ async (dispatch) => {
|
|
|
+ topicsName.forEach((topicName) => {
|
|
|
+ dispatch(clearTopicMessages(clusterName, topicName));
|
|
|
+ });
|
|
|
+ };
|
|
|
+
|
|
|
export const fetchTopicDetails =
|
|
|
(clusterName: ClusterName, topicName: TopicName): PromiseThunkResult =>
|
|
|
async (dispatch, getState) => {
|
|
@@ -285,6 +293,14 @@ export const deleteTopic =
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+export const deleteTopics =
|
|
|
+ (clusterName: ClusterName, topicsName: TopicName[]): PromiseThunkResult =>
|
|
|
+ async (dispatch) => {
|
|
|
+ topicsName.forEach((topicName) => {
|
|
|
+ dispatch(deleteTopic(clusterName, topicName));
|
|
|
+ });
|
|
|
+ };
|
|
|
+
|
|
|
export const fetchTopicConsumerGroups =
|
|
|
(clusterName: ClusterName, topicName: TopicName): PromiseThunkResult =>
|
|
|
async (dispatch, getState) => {
|