Fix text in the permissions menu for share link.
Changed word capitalization and replace && for andi to match the server. Signed-off-by: Camila <hello@camila.codes>
This commit is contained in:
parent
30a533d49c
commit
f018f7df3b
|
@ -155,7 +155,7 @@ void ShareLinkWidget::setupUiOptions()
|
||||||
|
|
||||||
if (_isFile) {
|
if (_isFile) {
|
||||||
checked = (perm & SharePermissionRead) && (perm & SharePermissionUpdate);
|
checked = (perm & SharePermissionRead) && (perm & SharePermissionUpdate);
|
||||||
_allowEditingLinkAction = _linkContextMenu->addAction(tr("Allow Editing"));
|
_allowEditingLinkAction = _linkContextMenu->addAction(tr("Allow editing"));
|
||||||
_allowEditingLinkAction->setCheckable(true);
|
_allowEditingLinkAction->setCheckable(true);
|
||||||
_allowEditingLinkAction->setChecked(checked);
|
_allowEditingLinkAction->setChecked(checked);
|
||||||
|
|
||||||
|
@ -167,12 +167,12 @@ void ShareLinkWidget::setupUiOptions()
|
||||||
|
|
||||||
checked = (perm & SharePermissionRead) && (perm & SharePermissionCreate)
|
checked = (perm & SharePermissionRead) && (perm & SharePermissionCreate)
|
||||||
&& (perm & SharePermissionUpdate) && (perm & SharePermissionDelete);
|
&& (perm & SharePermissionUpdate) && (perm & SharePermissionDelete);
|
||||||
_allowUploadEditingLinkAction = permissionsGroup->addAction(tr("Allow Upload && Editing"));
|
_allowUploadEditingLinkAction = permissionsGroup->addAction(tr("Allow upload and editing"));
|
||||||
_allowUploadEditingLinkAction->setCheckable(true);
|
_allowUploadEditingLinkAction->setCheckable(true);
|
||||||
_allowUploadEditingLinkAction->setChecked(checked);
|
_allowUploadEditingLinkAction->setChecked(checked);
|
||||||
|
|
||||||
checked = (perm == SharePermissionCreate);
|
checked = (perm == SharePermissionCreate);
|
||||||
_allowUploadLinkAction = permissionsGroup->addAction(tr("File Drop (Upload Only)"));
|
_allowUploadLinkAction = permissionsGroup->addAction(tr("File drop (upload only)"));
|
||||||
_allowUploadLinkAction->setCheckable(true);
|
_allowUploadLinkAction->setCheckable(true);
|
||||||
_allowUploadLinkAction->setChecked(checked);
|
_allowUploadLinkAction->setChecked(checked);
|
||||||
}
|
}
|
||||||
|
@ -187,7 +187,7 @@ void ShareLinkWidget::setupUiOptions()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adds action to display note widget (check box)
|
// Adds action to display note widget (check box)
|
||||||
_noteLinkAction = _linkContextMenu->addAction(tr("Add note to recipient"));
|
_noteLinkAction = _linkContextMenu->addAction(tr("Note to recipient"));
|
||||||
_noteLinkAction->setCheckable(true);
|
_noteLinkAction->setCheckable(true);
|
||||||
|
|
||||||
if (_linkShare->getNote().isSimpleText() && !_linkShare->getNote().isEmpty()) {
|
if (_linkShare->getNote().isSimpleText() && !_linkShare->getNote().isEmpty()) {
|
||||||
|
@ -197,7 +197,7 @@ void ShareLinkWidget::setupUiOptions()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adds action to display password widget (check box)
|
// Adds action to display password widget (check box)
|
||||||
_passwordProtectLinkAction = _linkContextMenu->addAction(tr("Password Protect"));
|
_passwordProtectLinkAction = _linkContextMenu->addAction(tr("Password protect"));
|
||||||
_passwordProtectLinkAction->setCheckable(true);
|
_passwordProtectLinkAction->setCheckable(true);
|
||||||
|
|
||||||
if (_linkShare.data()->isPasswordSet()) {
|
if (_linkShare.data()->isPasswordSet()) {
|
||||||
|
@ -214,7 +214,7 @@ void ShareLinkWidget::setupUiOptions()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adds action to display expiration date widget (check box)
|
// Adds action to display expiration date widget (check box)
|
||||||
_expirationDateLinkAction = _linkContextMenu->addAction(tr("Expiration Date"));
|
_expirationDateLinkAction = _linkContextMenu->addAction(tr("Set expiration date"));
|
||||||
_expirationDateLinkAction->setCheckable(true);
|
_expirationDateLinkAction->setCheckable(true);
|
||||||
if (!expireDate.isNull()) {
|
if (!expireDate.isNull()) {
|
||||||
_ui->calendar->setDate(expireDate);
|
_ui->calendar->setDate(expireDate);
|
||||||
|
@ -233,7 +233,7 @@ void ShareLinkWidget::setupUiOptions()
|
||||||
|
|
||||||
// Adds action to unshare widget (check box)
|
// Adds action to unshare widget (check box)
|
||||||
_unshareLinkAction = _linkContextMenu->addAction(QIcon(":/client/theme/delete.svg"),
|
_unshareLinkAction = _linkContextMenu->addAction(QIcon(":/client/theme/delete.svg"),
|
||||||
tr("Unshare"));
|
tr("Delete share link"));
|
||||||
|
|
||||||
_linkContextMenu->addSeparator();
|
_linkContextMenu->addSeparator();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue