Przeglądaj źródła

feat: add disable-export functionality to multiple components

Jacky 2 miesięcy temu
rodzic
commit
153aa1b87d

+ 1 - 0
app/src/views/environments/list/Environment.vue

@@ -74,6 +74,7 @@ const inTrash = computed(() => {
       :title="$gettext('Environments')"
       :api="environment"
       :columns="envColumns"
+      disable-export
     >
       <template #beforeAdd>
         <AButton size="small" type="link" :loading="loadingFromSettings" @click="loadFromSettings">

+ 0 - 1
app/src/views/notification/Notification.vue

@@ -30,7 +30,6 @@ watch(unreadCount, () => {
     :api="notification"
     disable-modify
     disable-add
-    disable-trash
     disable-export
   >
     <template #extra>

+ 2 - 2
app/src/views/notification/notificationColumns.tsx

@@ -63,8 +63,8 @@ const columns: StdTableColumn[] = [{
   pure: true,
   width: 500,
 }, {
-  title: () => $gettext('Action'),
-  dataIndex: 'action',
+  title: () => $gettext('Actions'),
+  dataIndex: 'actions',
   fixed: 'right',
   width: 200,
 }]

+ 1 - 0
app/src/views/site/site_list/SiteList.vue

@@ -72,6 +72,7 @@ function handle_click_duplicate(name: string) {
       }"
       disable-delete
       disable-view
+      disable-export
       row-selection-type="checkbox"
       :custom-query-params="{
         env_group_id: envGroupId,

+ 1 - 0
app/src/views/stream/StreamList.vue

@@ -106,6 +106,7 @@ function handleAddStream() {
       }"
       disable-delete
       disable-view
+      disable-export
       row-selection-type="checkbox"
       :custom-query-params="{
         env_group_id: envGroupId,