Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
37
gaia/apps/bluetooth/js/views/cannot_transfer_dialog.js
Executable file
37
gaia/apps/bluetooth/js/views/cannot_transfer_dialog.js
Executable file
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* CannotTransferDialog is responsible for:
|
||||
* Alert a user that the activity request is not able to transfer via
|
||||
* Bluetooth with some reason. There is an alert handling via here.
|
||||
*/
|
||||
define(function() {
|
||||
'use strict';
|
||||
|
||||
var CannotTransferDialog = {
|
||||
init: function() {
|
||||
this.dialog = document.getElementById('alert-view');
|
||||
this.confirmBtn =
|
||||
document.getElementById('alert-button-ok');
|
||||
},
|
||||
|
||||
showConfirm: function() {
|
||||
return new Promise((resolve) => {
|
||||
this.confirmBtn.onclick = () => {
|
||||
this.close();
|
||||
resolve();
|
||||
};
|
||||
this.dialog.hidden = false;
|
||||
});
|
||||
},
|
||||
|
||||
get isVisible() {
|
||||
return (!this.dialog.hidden);
|
||||
},
|
||||
|
||||
close : function() {
|
||||
this.dialog.hidden = true;
|
||||
}
|
||||
};
|
||||
|
||||
CannotTransferDialog.init();
|
||||
return CannotTransferDialog;
|
||||
});
|
||||
Loading…
Reference in a new issue