From b15d8a3c0cd50cc19150bf2784c7d4eddf11992a Mon Sep 17 00:00:00 2001 From: Jesse de Vries Date: Wed, 28 Aug 2024 15:15:49 +0200 Subject: [PATCH] Added Hashify filename notice for Ephemeral mode --- static/scripts/wp-stateless.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/scripts/wp-stateless.js b/static/scripts/wp-stateless.js index a3de0b7b2..beaa74f45 100644 --- a/static/scripts/wp-stateless.js +++ b/static/scripts/wp-stateless.js @@ -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()