diff --git a/source/options/components/page-main.ts b/source/options/components/page-main.ts index bec8e6f..de95c71 100644 --- a/source/options/components/page-main.ts +++ b/source/options/components/page-main.ts @@ -1,4 +1,4 @@ -import {ConfirmButton} from '@holllo/gram'; +import {ConfirmButton, FeedbackButton} from '@holllo/gram'; import {html} from 'htm/preact'; import {Component} from 'preact'; import browser from 'webextension-polyfill'; @@ -99,7 +99,8 @@ export class PageMain extends Component { throw error; } - return; + // Return false to make the FeedbackButton not show feedback. + return false; } const bangs = this.state.bangs; @@ -197,7 +198,13 @@ export class PageMain extends Component { ${editorInputs}
- + <${FeedbackButton} + attributes=${{class: 'button'}} + click=${this.saveBang} + feedbackText="Saved" + text="Save" + timeout=${5 * 1000} + /> <${ConfirmButton} class="button destructive" click=${this.removeBang}