Skip to content

Commit

Permalink
Merge pull request #11 from hertg/dev
Browse files Browse the repository at this point in the history
Fix issue in power menu (#8)
  • Loading branch information
hertg authored Oct 15, 2022
2 parents 82fcdb7 + 7340a58 commit 6d9cb16
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lightdm-neon",
"version": "0.1.0",
"version": "0.1.1",
"private": true,
"scripts": {
"build": "rollup -c",
Expand Down
8 changes: 4 additions & 4 deletions src/pages/PowerMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
<Container>
<div class="container">
{#if window.lightdm.can_hibernate}
<BigButton icon="Moon24" text="Hibernate" on:click={window.lightdm.hibernate} />
<BigButton icon="Moon24" text="Hibernate" on:click={() => window.lightdm.hibernate()} />
{/if}

{#if window.lightdm.can_suspend}
<BigButton icon="NoEntry24" text="Suspend" on:click={window.lightdm.suspend} />
<BigButton icon="NoEntry24" text="Suspend" on:click={() => window.lightdm.suspend()} />
{/if}

{#if window.lightdm.can_restart}
<BigButton icon="Sync24" text="Restart" on:click={window.lightdm.restart} />
<BigButton icon="Sync24" text="Restart" on:click={() => window.lightdm.restart()} />
{/if}

{#if window.lightdm.can_shutdown}
<BigButton icon="Plug24" text="Shutdown" on:click={window.lightdm.shutdown} />
<BigButton icon="Plug24" text="Shutdown" on:click={() => window.lightdm.shutdown()} />
{/if}
</div>
</Container>
Expand Down
4 changes: 4 additions & 0 deletions src/utils/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,19 @@ export class Greeter implements GreeterClass {
}

hibernate() {
alert('hibernate');
return true;
}
restart() {
alert('restart');
return true;
}
shutdown() {
alert('shutdown')
return true;
}
suspend() {
alert('suspend');
return true;
}
respond(response: string) {
Expand Down

0 comments on commit 6d9cb16

Please sign in to comment.