mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-25 01:03:18 +08:00
Fix small sanity check bugs [SCI-10080]
This commit is contained in:
parent
3360d58439
commit
6bce6808f2
4 changed files with 8 additions and 2 deletions
|
@ -321,6 +321,7 @@ export default {
|
|||
if (this.dataLoading) return;
|
||||
|
||||
this.dataLoading = true;
|
||||
this.selectedRows = [];
|
||||
this.page = 1;
|
||||
this.loadData(true);
|
||||
},
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue