Only allow to change maintenance messages in maintenance screen.
This commit is contained in:
parent
027457af82
commit
71bb80f95d
3 changed files with 12 additions and 8 deletions
|
@ -17,6 +17,7 @@ class App.SettingsAreaLogo extends App.Controller
|
|||
localElement.find('.js-loginPreview').html( App.view('generic/login_preview')(
|
||||
logoUrl: @logoUrl()
|
||||
logoChange: true
|
||||
maintananceChange: false
|
||||
))
|
||||
@html localElement
|
||||
|
||||
|
|
|
@ -22,6 +22,8 @@ class Index extends App.ControllerSubContent
|
|||
localElement = $(App.view('maintenance')())
|
||||
localElement.find('.js-loginPreview').html( App.view('generic/login_preview')(
|
||||
logoUrl: @logoUrl()
|
||||
logoChange: false
|
||||
maintananceChange: true
|
||||
))
|
||||
|
||||
localElement.find('.js-textarea').ce({
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
<div class="login branding centered darkBackground vertical">
|
||||
<% if @maintananceChange: %>
|
||||
<% if @C('maintenance_mode'): %>
|
||||
<div class="hero-unit alert alert--danger"><%- @T('Zammad is currently in maintenance mode. Only administrators can login. Please wait until the maintenance window is over.') %></div>
|
||||
<% end %>
|
||||
|
||||
<% if @C('maintenance_mode'): %>
|
||||
<div class="hero-unit alert alert--danger"><%- @T('Zammad is currently in maintenance mode. Only administrators can login. Please wait until the maintenance window is over.') %></div>
|
||||
<% end %>
|
||||
|
||||
<% if !@logoChange || @C('maintenance_login'): %>
|
||||
<form>
|
||||
<div contenteditable id="maintenance-message" data-name="message" class="hero-unit alert alert--success js-textarea js-Login" <% if !@C('maintenance_login'): %>style="opacity: 0.5;"<% end %>><%- @C('maintenance_login_message') %></div>
|
||||
</form>
|
||||
<% if !@logoChange || @C('maintenance_login'): %>
|
||||
<form>
|
||||
<div contenteditable id="maintenance-message" data-name="message" class="hero-unit alert alert--success js-textarea js-Login" <% if !@C('maintenance_login'): %>style="opacity: 0.5;"<% end %>><%- @C('maintenance_login_message') %></div>
|
||||
</form>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<div class="hero-unit">
|
||||
|
|
Loading…
Reference in a new issue