Skip to content

Commit

Permalink
BDE-226 display studio package name
Browse files Browse the repository at this point in the history
  • Loading branch information
nxmatic committed Mar 21, 2024
1 parent ed023d8 commit 29feb0c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions public/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,13 @@ HEADINGS
color: #fff;
}

.studio-package-name {
text-overflow: ellipsis;
font-size: 100%;
font-weight: bold;
color: #fff;
}

.reset {
position: absolute;
height: 15px;
Expand Down
2 changes: 1 addition & 1 deletion src/popup/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<div class="server-main">
<ul>
<li class="server-name">Connected to Nuxeo Server<span id="platform-version"></span>:</li>
<li><div class="server-name-url"></div></li>
<li><div class="server-name-url"></div><div class="studio-package-name" id="studio-package-name"></div></li>
<li id="connect-url">
<form class="search-container" id="options">
<input type="text" id="connect-url-input" class="form" placeholder="https://connect.nuxeo.com" results="5" />
Expand Down
2 changes: 2 additions & 0 deletions src/popup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ function loadPage(worker) {
});

const studioPackageFound = (connectUrl, packageName) => {
$('#studio-package-name').text(packageName);
const toogleDesignerLivePreviewButton = (isEnabled) => {
$('#designer-live-preview-button').toggleClass('enabled', isEnabled);
$('#designer-live-preview-button').toggleClass('disabled', !isEnabled);
Expand Down Expand Up @@ -152,6 +153,7 @@ function loadPage(worker) {
};

const noStudioPackageFound = () => {
$('#studio-package-name').text('not found');
$('#studio, #studio-buttons').css('display', 'none');
$('#no-studio-buttons').css('display', 'block');
$('#message').css('display', 'none');
Expand Down

0 comments on commit 29feb0c

Please sign in to comment.