mirror of
https://github.com/Kenshin/simpread.git
synced 2026-02-01 15:41:29 +00:00
Add save complete notification.
This commit is contained in:
parent
f09ace0d20
commit
c1d6fb717d
@ -2,6 +2,7 @@ console.log( "=== simpread option dialog ===" )
|
||||
|
||||
import FocusOpt from 'focusopt';
|
||||
import { storage, STORAGE_MODE } from 'storage';
|
||||
import Notify from 'notify';
|
||||
|
||||
const optbgcls = "ks-simpread-option-bg",
|
||||
optbg = `<div class="${ optbgcls }"></div>`;
|
||||
@ -21,6 +22,7 @@ export default class Dialog extends React.Component {
|
||||
save() {
|
||||
console.log( "dialog click submit button.", storage.current )
|
||||
storage.Set( STORAGE_MODE.focus );
|
||||
new Notify().Render( 0, "更新成功;如果修改快捷键,需要刷新当前页面!" );
|
||||
this.close( false );
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user