Skip to content

Commit

Permalink
Merge pull request #759 from Jessedev1/patch-1
Browse files Browse the repository at this point in the history
Added Hashify filename notice for Ephemeral mode
  • Loading branch information
balexey88 authored Sep 19, 2024
2 parents 75e0b42 + b15d8a3 commit e6a88cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/scripts/wp-stateless.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,13 @@ var wpStatelessSettingsApp = {
jQuery('#cache_busting').val( this.backup['hashify_file_name'] )
}

if (mode == 'stateless') {
if (['stateless', 'ephemeral'].indexOf(mode) > -1) {
jQuery('#cache_busting').prop('disabled', true)
} else {
this.showNotice('hashify_file_name')
}

if (mode == 'stateless' && this.sm.readonly['hashify_file_name'] != 'constant') {
if ((['stateless', 'ephemeral'].indexOf(mode) > -1) && this.sm.readonly['hashify_file_name'] != 'constant') {
jQuery('#notice-hashify_file_name-mode').show()
} else {
jQuery('#notice-hashify_file_name-mode').hide()
Expand Down

0 comments on commit e6a88cc

Please sign in to comment.