fix: use SNJS duplicateItem for restoring as copy

This commit is contained in:
Baptiste Grob
2020-10-01 15:12:35 +02:00
parent e23250200a
commit fff0ae1313
6 changed files with 16 additions and 28 deletions

View File

@@ -1,17 +1,10 @@
import { FooterStatus } from '@/types';
declare type StatusCallback = (string: string) => void;
export declare class StatusManager {
private statuses;
private _message;
private observers;
replaceStatusWithString(status: FooterStatus, string: string): {
string: string;
};
addStatusFromString(string: string): {
string: string;
};
removeStatus(status: FooterStatus): undefined;
addStatusObserver(callback: StatusCallback): () => void;
get message(): string;
setMessage(message: string): void;
onStatusChange(callback: StatusCallback): () => void;
private notifyObservers;
private getStatusString;
}
export {};

View File

@@ -2,7 +2,6 @@ import { WebApplication } from '@/ui_models/application';
import { ApplicationService, ApplicationEvent } from 'snjs';
export declare class ThemeManager extends ApplicationService {
private activeThemes;
private unsubState?;
private unregisterDesktop;
private unregisterStream;
onAppEvent(event: ApplicationEvent): Promise<void>;

View File

@@ -15,7 +15,7 @@ declare type WebServices = {
autolockService: AutolockService;
archiveService: ArchiveManager;
nativeExtService: NativeExtManager;
statusService: StatusManager;
statusManager: StatusManager;
themeService: ThemeManager;
prefsService: PreferencesManager;
keyboardService: KeyboardManager;
@@ -37,7 +37,7 @@ export declare class WebApplication extends SNApplication {
getAutolockService(): AutolockService;
getArchiveService(): ArchiveManager;
getNativeExtService(): NativeExtManager;
getStatusService(): StatusManager;
getStatusManager(): StatusManager;
getThemeService(): ThemeManager;
getPrefsService(): PreferencesManager;
getKeyboardService(): KeyboardManager;