UX: Show obvious message when backup restoration is disabled

This commit is contained in:
Kris 2019-11-26 12:55:25 -05:00
parent 7e08dabeac
commit ff34ab6aef
2 changed files with 20 additions and 0 deletions

View File

@ -28,6 +28,11 @@
title="admin.backups.read_only.enable.title" title="admin.backups.read_only.enable.title"
label="admin.backups.read_only.enable.label"}} label="admin.backups.read_only.enable.label"}}
{{/if}} {{/if}}
<div class="backup-message">
{{#if status.restoreDisabled}}
<a href="site_settings/category/all_results?filter=allow_restore">{{d-icon "info-circle"}} {{i18n "admin.backups.operations.restore.is_disabled"}}</a>
{{/if}}
</div>
</div> </div>
<table class="grid"> <table class="grid">
<thead> <thead>

View File

@ -96,3 +96,18 @@ button.ru {
margin-left: 10px; margin-left: 10px;
} }
} }
.backup-options {
display: flex;
align-items: center;
flex-wrap: wrap;
button {
margin-right: 0.5em;
}
.backup-message {
margin-left: auto;
@include breakpoint(mobile-extra-large) {
margin: 1.25em 0 0;
}
}
}