From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 5506F9B5EB for ; Wed, 18 Oct 2023 12:09:04 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 37CA9CDD7 for ; Wed, 18 Oct 2023 12:09:04 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Wed, 18 Oct 2023 12:09:03 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 808B3429FB for ; Wed, 18 Oct 2023 12:09:02 +0200 (CEST) From: Gabriel Goller To: pbs-devel@lists.proxmox.com Date: Wed, 18 Oct 2023 12:08:58 +0200 Message-Id: <20231018100858.56184-3-g.goller@proxmox.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231018100858.56184-1-g.goller@proxmox.com> References: <20231018100858.56184-1-g.goller@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.317 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pbs-devel] [PATCH pve-manager] ui: align spinner to the left, added label X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Oct 2023 10:09:04 -0000 Moved the spinner in the task and replication view to the left, so it is aligned correctly with the 'OK' and 'Error: ...' text. Removed 'x-grid-row-loading' class as it has been moved to the `proxmox-widget-toolkit` repo. Signed-off-by: Gabriel Goller --- www/css/ext6-pve.css | 6 ------ www/manager6/dc/Tasks.js | 3 ++- www/manager6/grid/Replication.js | 4 ++-- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/www/css/ext6-pve.css b/www/css/ext6-pve.css index edae462b..237500bb 100644 --- a/www/css/ext6-pve.css +++ b/www/css/ext6-pve.css @@ -78,12 +78,6 @@ content: "\f115"; } -/* loading in task list */ -.x-grid-row-loading { - background: no-repeat center center; - background-image:url(../ext6/theme-crisp/resources/images/loadmask/loading.gif); -} - /* console icon in task list */ .x-grid-row-console { background: no-repeat center center; diff --git a/www/manager6/dc/Tasks.js b/www/manager6/dc/Tasks.js index 5344ede4..1a35c183 100644 --- a/www/manager6/dc/Tasks.js +++ b/www/manager6/dc/Tasks.js @@ -120,7 +120,8 @@ Ext.define('PVE.dc.Tasks', { renderer: function(value, metaData, record) { if (record.data.pid) { if (record.data.type !== "vncproxy") { - metaData.tdCls = "x-grid-row-loading"; + metaData.tdCls = "x-grid-row-loading-left"; + return `${gettext('Running')}`; } return ""; } diff --git a/www/manager6/grid/Replication.js b/www/manager6/grid/Replication.js index 30cd6718..29af4aa3 100644 --- a/www/manager6/grid/Replication.js +++ b/www/manager6/grid/Replication.js @@ -329,8 +329,8 @@ Ext.define('PVE.grid.ReplicaView', { flex: 1, renderer: function(value, metadata, record) { if (record.data.pid) { - metadata.tdCls = 'x-grid-row-loading'; - return ''; + metadata.tdCls = "x-grid-row-loading-left"; + return `${gettext('Running')}`; } let icons = [], states = []; -- 2.39.2