mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2026-01-07 00:36:08 +08:00
Remove time component from project created at and remove visible to column from projects [SCI-9988]
This commit is contained in:
parent
003990993d
commit
5bab70070e
3 changed files with 2 additions and 20 deletions
|
|
@ -27,10 +27,6 @@
|
|||
<span class="text-sn-grey">{{ i18n.t('projects.index.card.archived_date') }}</span>
|
||||
<span class="font-bold">{{ params.archived_on }}</span>
|
||||
</template>
|
||||
<span class="text-sn-grey">{{ i18n.t('projects.index.card.visibility') }}</span>
|
||||
<span class="font-bold">
|
||||
{{ params.hidden ? i18n.t('projects.index.hidden') : i18n.t('projects.index.visible') }}
|
||||
</span>
|
||||
<span class="text-sn-grey">{{ i18n.t('projects.index.card.users') }}</span>
|
||||
<UsersRenderer :params="{data: params, value: params.users, dtComponent: dtComponent}" class="-mt-2.5" />
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -139,12 +139,6 @@ export default {
|
|||
headerName: this.i18n.t('projects.index.card.start_date'),
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
field: 'hidden',
|
||||
headerName: this.i18n.t('projects.index.card.visibility'),
|
||||
cellRenderer: this.visibiltyRenderer,
|
||||
sortable: false,
|
||||
},
|
||||
{
|
||||
field: 'users',
|
||||
headerName: this.i18n.t('projects.index.card.users'),
|
||||
|
|
@ -246,10 +240,6 @@ export default {
|
|||
${params.data.name}
|
||||
</a>`;
|
||||
},
|
||||
visibiltyRenderer(params) {
|
||||
if (params.data.type !== 'projects') return '';
|
||||
return params.data.hidden ? this.i18n.t('projects.index.hidden') : this.i18n.t('projects.index.visible');
|
||||
},
|
||||
openComments(_params, rows) {
|
||||
this.$refs.commentButton.dataset.objectId = rows[0].id;
|
||||
this.$refs.commentButton.click();
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ module Lists
|
|||
include Rails.application.routes.url_helpers
|
||||
include Canaid::Helpers::PermissionsHelper
|
||||
|
||||
attributes :name, :code, :created_at, :archived_on, :users, :hidden, :urls, :folder,
|
||||
attributes :name, :code, :created_at, :archived_on, :users, :urls, :folder,
|
||||
:folder_info, :default_public_user_role_id, :team, :top_level_assignable
|
||||
|
||||
def team
|
||||
|
|
@ -29,17 +29,13 @@ module Lists
|
|||
end
|
||||
|
||||
def created_at
|
||||
I18n.l(object.created_at, format: :full) if project?
|
||||
I18n.l(object.created_at, format: :full_date) if project?
|
||||
end
|
||||
|
||||
def archived_on
|
||||
I18n.l(object.archived_on, format: :full) if project? && object.archived_on
|
||||
end
|
||||
|
||||
def hidden
|
||||
object.hidden? if project?
|
||||
end
|
||||
|
||||
def users
|
||||
if project?
|
||||
object.user_assignments.map do |ua|
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue