fix vault

This commit is contained in:
ammarahm-ed
2020-03-14 12:13:00 +05:00
parent 95bb25eed4
commit d6871bab39
6 changed files with 156 additions and 96 deletions

View File

@@ -30,7 +30,7 @@ import {AddTopicDialog} from '../AddTopicDialog';
import {Dialog} from '../Dialog';
import LoginDialog from '../LoginDialog';
import MoveNoteDialog from '../MoveNoteDialog';
import {VaultDialog} from '../VaultDialog';
import {VaultDialog, openVault} from '../VaultDialog';
import {timeConverter, hexToRGBA} from '../../utils/utils';
import {Platform} from 'react-native';
@@ -334,7 +334,12 @@ export class DialogManager extends Component {
if (this.show) {
switch (this.show) {
case 'delete': {
this._showSimpleDialog(TEMPLATE_DELETE(this.state.item.type));
if (this.state.item.locked) {
openVault(this.state.item, true, true, false, false, false, true);
} else {
this._showSimpleDialog(TEMPLATE_DELETE(this.state.item.type));
}
break;
}
case 'permanant_delete': {