Skip to content

Commit

Permalink
dav: make cover message success
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <radialapps@gmail.com>
  • Loading branch information
pulsejet committed Mar 21, 2024
1 parent c0ffed0 commit cbce751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/dav/other.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getFiles } from './base';
import { generateUrl } from '@nextcloud/router';
import { showError, showInfo } from '@nextcloud/dialogs';
import { showError, showSuccess } from '@nextcloud/dialogs';
import axios from '@nextcloud/axios';

import { API } from '@services/API';
Expand Down Expand Up @@ -60,7 +60,7 @@ export async function setClusterCover(photo: IPhoto): Promise<boolean> {

try {
await axios.post(API.CLUSTER_SET_COVER(clusterType), { name, fileid });
showInfo(t('memories', 'Cover image set successfully'));
showSuccess(t('memories', 'Cover image set successfully'));
return true;
} catch (err) {
showError(t('memories', 'Failed to set cover image'));
Expand Down

0 comments on commit cbce751

Please sign in to comment.