updated modal

This commit is contained in:
Danny Coates
2018-10-29 09:52:24 -07:00
parent 7ad63ae004
commit 0e5202c470
10 changed files with 38 additions and 28 deletions

View File

@@ -157,7 +157,7 @@ export default function(state, emitter) {
if (password) {
emitter.emit('password', { password, file: ownedFile });
}
state.modal = copyDialog(ownedFile.url);
state.modal = copyDialog(ownedFile.name, ownedFile.url);
state.animation = () => {
const x = document.querySelector('.foo');
const y = x.previousElementSibling;
@@ -177,7 +177,6 @@ export default function(state, emitter) {
fill: 'both'
});
};
// emitter.emit('pushState', `/share/${ownedFile.id}`);
} catch (err) {
if (err.message === '0') {
//cancelled. do nothing