mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-08 15:31:02 +08:00
Merge pull request #5092 from aignatov-bio/ai-sci-8077-add-empty-state-for-protocol-actions-toolbar
Add empty state for protocol actions toolbar [SCI-8077]
This commit is contained in:
commit
ce36a2565b
4 changed files with 11 additions and 0 deletions
|
|
@ -695,6 +695,8 @@ var ProtocolsIndex = (function() {
|
|||
actionToolbar.find('.btn').removeClass('btn-primary').addClass('btn-light');
|
||||
actionToolbar.find('.btn:visible').first().addClass('btn-primary').removeClass('btn-light');
|
||||
actionToolbar.find('.btn').removeClass('notransition');
|
||||
|
||||
actionToolbar.find('.emptyPlaceholder').toggleClass('hidden', actionToolbar.find('.btn:visible').length > 0);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -56,6 +56,11 @@
|
|||
top: 0;
|
||||
width: 100%;
|
||||
|
||||
.emptyPlaceholder {
|
||||
color: $color-volcano;
|
||||
margin-left: 12px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
margin-right: .25em;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,4 +23,7 @@
|
|||
<i class="fas fa-undo"></i>
|
||||
<span class="button-text"><%= t("protocols.index.action_toolbar.restore") %></span>
|
||||
</button>
|
||||
<div class="emptyPlaceholder hidden">
|
||||
<%= t("protocols.index.action_toolbar.empty_placeholder") %>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -2718,6 +2718,7 @@ en:
|
|||
export: "Export"
|
||||
archive: "Archive"
|
||||
restore: "Restore"
|
||||
empty_placeholder: "There is no action available"
|
||||
public_description: "Team protocols are visible and can be used by everyone from the team."
|
||||
private_description: "My protocols are only visible to you."
|
||||
create_new: "New protocol"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue