Fix small sanity check bugs [SCI-10080]

This commit is contained in:
Anton 2024-01-24 14:06:26 +01:00
parent 3360d58439
commit 6bce6808f2
4 changed files with 8 additions and 2 deletions

View file

@ -321,6 +321,7 @@ export default {
if (this.dataLoading) return;
this.dataLoading = true;
this.selectedRows = [];
this.page = 1;
this.loadData(true);
},

View file

@ -54,6 +54,7 @@
<button
v-if="currentViewRender === 'table'"
@click="showColumnsModal = true"
:title="i18n.t('experiments.table.column_display_modal.title')"
class="btn btn-light icon-btn"
>
<i class="sn-icon sn-icon-reports"></i>

View file

@ -5,7 +5,7 @@ module Lists
include Rails.application.routes.url_helpers
include Canaid::Helpers::PermissionsHelper
attributes :name, :code, :created_at, :archived_on, :users, :urls, :folder,
attributes :name, :code, :created_at, :archived_on, :users, :urls, :folder, :hidden,
:folder_info, :default_public_user_role_id, :team, :top_level_assignable
def team
@ -20,6 +20,10 @@ module Lists
project?
end
def hidden
object.hidden? if project?
end
def default_public_user_role_id
object.default_public_user_role_id if project?
end

View file

@ -1547,7 +1547,7 @@ en:
success_flash: "Successfully moved task(s) to experiment %{experiment}."
error_flash: "Failed to move task(s) to experiment %{experiment}."
column_display_modal:
title: 'Task data display'
title: 'Columns display'
description: 'Click the eye buttons to hide or show columns in the table'
id: 'ID'
task_name: 'Task name'