hide and show buttons to create/copy link
This commit is contained in:
parent
af6b77a2ff
commit
4f8ca40d36
@ -50,4 +50,7 @@
|
|||||||
margin-right: 10px;;
|
margin-right: 10px;;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.cp-teams-invite-create {
|
||||||
|
margin-right: 0px !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1718,7 +1718,8 @@ define([
|
|||||||
NThen(function (waitFor) {
|
NThen(function (waitFor) {
|
||||||
$(linkForm).hide();
|
$(linkForm).hide();
|
||||||
$(linkSpin).show();
|
$(linkSpin).show();
|
||||||
$nav.find('button.cp-teams-invite-create').prop('disabled', 'disabled');
|
$nav.find('button.cp-teams-invite-create').hide();
|
||||||
|
$nav.find('button.cp-teams-invite-copy').show()
|
||||||
setTimeout(waitFor(), 150);
|
setTimeout(waitFor(), 150);
|
||||||
}).nThen(function (waitFor) {
|
}).nThen(function (waitFor) {
|
||||||
InviteInner.deriveBytes(seeds.scrypt, salt, waitFor(function (_bytes) {
|
InviteInner.deriveBytes(seeds.scrypt, salt, waitFor(function (_bytes) {
|
||||||
@ -1738,7 +1739,7 @@ define([
|
|||||||
if (obj && obj.error) {
|
if (obj && obj.error) {
|
||||||
waitFor.abort();
|
waitFor.abort();
|
||||||
$(linkSpin).hide();
|
$(linkSpin).hide();
|
||||||
return void $(linkError).text('ERROR '+obj.error).show(); // XXX
|
return void $(linkError).text(Messages.team_inviteLinkError+obj.error).show(); // XXX
|
||||||
}
|
}
|
||||||
// Display result here
|
// Display result here
|
||||||
$(linkSpin).hide();
|
$(linkSpin).hide();
|
||||||
@ -1774,7 +1775,7 @@ define([
|
|||||||
var frameLink = UI.dialog.customModal(linkContent, {
|
var frameLink = UI.dialog.customModal(linkContent, {
|
||||||
buttons: linkButtons,
|
buttons: linkButtons,
|
||||||
});
|
});
|
||||||
$(frameLink).find('.cp-teams-invite-copy').prop('disabled', 'disabled');
|
$(frameLink).find('.cp-teams-invite-copy').prop('disabled', 'disabled').hide();
|
||||||
|
|
||||||
// Create modal
|
// Create modal
|
||||||
var tabs = [{
|
var tabs = [{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user