Added the hover message for the publish menu icon
This commit is contained in:
parent
0305719fe3
commit
103511bc40
|
@ -33,7 +33,7 @@
|
||||||
let promise = getPackage()
|
let promise = getPackage()
|
||||||
let unpublishModal
|
let unpublishModal
|
||||||
let publishPopover
|
let publishPopover
|
||||||
// let notPublishedPopover
|
let notPublishedPopover
|
||||||
|
|
||||||
$: enrichedApps = enrichApps($apps, $auth.user)
|
$: enrichedApps = enrichApps($apps, $auth.user)
|
||||||
const enrichApps = (apps, user) => {
|
const enrichApps = (apps, user) => {
|
||||||
|
@ -224,6 +224,7 @@
|
||||||
<RevertModal />
|
<RevertModal />
|
||||||
<Icon name="Play" hoverable on:click={previewApp} />
|
<Icon name="Play" hoverable on:click={previewApp} />
|
||||||
|
|
||||||
|
{#if isPublished}
|
||||||
<PopoverMenu
|
<PopoverMenu
|
||||||
bind:this={publishPopover}
|
bind:this={publishPopover}
|
||||||
align="right"
|
align="right"
|
||||||
|
@ -254,7 +255,7 @@
|
||||||
<div class="publish-popover-actions">
|
<div class="publish-popover-actions">
|
||||||
<Button
|
<Button
|
||||||
warning={true}
|
warning={true}
|
||||||
icon="Globe"
|
icon="GlobeStrike"
|
||||||
disabled={!isPublished}
|
disabled={!isPublished}
|
||||||
on:click={unpublishApp}
|
on:click={unpublishApp}
|
||||||
dataCy="publish-popover-action"
|
dataCy="publish-popover-action"
|
||||||
|
@ -265,6 +266,27 @@
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
||||||
</PopoverMenu>
|
</PopoverMenu>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{#if !isPublished}
|
||||||
|
<PopoverMenu bind:this={notPublishedPopover} align="right">
|
||||||
|
<div
|
||||||
|
slot="control"
|
||||||
|
class="icon"
|
||||||
|
on:mouseenter={() => {
|
||||||
|
notPublishedPopover.show()
|
||||||
|
}}
|
||||||
|
on:mouseout={() => {
|
||||||
|
notPublishedPopover.hide()
|
||||||
|
}}
|
||||||
|
on:blur={() => void 0}
|
||||||
|
disabled={true}
|
||||||
|
>
|
||||||
|
<Icon size="M" name={"GlobeStrike"} disabled={true} />
|
||||||
|
</div>
|
||||||
|
This app has not been published yet
|
||||||
|
</PopoverMenu>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<DeployModal onOk={completePublish} />
|
<DeployModal onOk={completePublish} />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue