From ac7a5488ee5a66126f3aee3bfcdfcc8677eb6c7b Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Tue, 18 Oct 2022 18:50:47 +0530 Subject: [PATCH] Disable the upscale/redo/double size buttons temporarily, so that the release can proceed to main --- ui/media/main.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/media/main.js b/ui/media/main.js index faee9bbb..23c7ab11 100644 --- a/ui/media/main.js +++ b/ui/media/main.js @@ -427,12 +427,12 @@ function showImages(reqBody, res, outputContainer, livePreview) { const buttons = { 'imgUseBtn': { html: 'Use as Input', click: getUseAsInputHandler(imageItemElem) }, 'imgSaveBtn': { html: 'Download', click: getSaveImageHandler(imageItemElem, req['output_format']) }, - 'imgX2Btn': { html: 'Double Size', click: getStartNewTaskHandler(req, imageItemElem, 'img2img_X2') }, - 'imgRedoBtn': { html: 'Redo', click: getStartNewTaskHandler(req, imageItemElem, 'img2img') }, - } - if (!req.use_upscale) { - buttons.upscaleBtn = { html: 'Upscale', click: getStartNewTaskHandler(req, imageItemElem, 'upscale') } + // 'imgX2Btn': { html: 'Double Size', click: getStartNewTaskHandler(req, imageItemElem, 'img2img_X2') }, + // 'imgRedoBtn': { html: 'Redo', click: getStartNewTaskHandler(req, imageItemElem, 'img2img') }, } + // if (!req.use_upscale) { + // buttons.upscaleBtn = { html: 'Upscale', click: getStartNewTaskHandler(req, imageItemElem, 'upscale') } + // } const imgItemInfo = imageItemElem.querySelector('.imgItemInfo') const createButton = function(name, btnInfo) { const newButton = document.createElement('button')