itizawa 5 лет назад
Родитель
Сommit
95a9264b56

+ 2 - 1
resource/locales/en-US/translation.json

@@ -345,7 +345,8 @@
     "remove_user_success": "Succeeded to removing {{username}}",
     "remove_external_user_success": "Succeeded to remove {{accountId}}",
     "remove_share_link_success": "Succeeded to remove {{shareLinkId}}",
-    "issue_share_link": "Succeeded to issue new share link"
+    "issue_share_link": "Succeeded to issue new share link",
+    "remove_share_link": "Succeeded to remove share links"
   },
   "template": {
     "modal_label": {

+ 2 - 1
resource/locales/ja/translation.json

@@ -346,7 +346,8 @@
     "remove_user_success": "{{username}}を削除しました",
     "remove_external_user_success": "{{accountId}}を削除しました",
     "remove_share_link_success": "{{shareLinkId}}を削除しました",
-    "issue_share_link": "共有リンクを作成しました"
+    "issue_share_link": "共有リンクを作成しました",
+    "remove_share_link": "共有リンクを削除しました"
   },
   "template": {
     "modal_label": {

+ 9 - 1
src/client/js/components/OutsideShareLinkModal.jsx

@@ -15,6 +15,8 @@ import PageContainer from '../services/PageContainer';
 import ShareLinkList from './ShareLinkList';
 import ShareLinkForm from './ShareLinkForm';
 
+import { toastSuccess, toastError } from '../util/apiNotification';
+
 class OutsideShareLinkModal extends React.Component {
 
   constructor() {
@@ -33,7 +35,13 @@ class OutsideShareLinkModal extends React.Component {
   }
 
   deleteAllLinksButtonHandler() {
-    console.log('hoge');
+    const { t } = this.props;
+    try {
+      toastSuccess(t('toaster.remove_share_link'));
+    }
+    catch (err) {
+      toastError(err);
+    }
   }
 
   render() {