mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Don't show upgrade prompts for non-owners
This commit is contained in:
parent
cb1020d5c1
commit
0255e08e1f
2 changed files with 12 additions and 3 deletions
|
@ -435,9 +435,11 @@
|
|||
.change-list-area
|
||||
.track-changes-diff
|
||||
.track-changes-upgrade-popup(style="display: none;")
|
||||
.message
|
||||
.message.show-when-owner
|
||||
p You need to upgrade your plan to use the History feature.
|
||||
button.btn.btn-primary.start-free-trial Start free trial
|
||||
.message.show-when-not-owner
|
||||
p Please ask the project owner to upgrade to use the History feature.
|
||||
.track-changes-upgrade-control(style="display: none;")
|
||||
.message History is not yet enabled for this project.
|
||||
button.btn.btn-primary.btn-large.upgrade Enable History
|
||||
|
@ -471,9 +473,11 @@
|
|||
li.loading-changes Loading...
|
||||
li.empty-message You haven't made any changes yet!
|
||||
li.track-changes-upgrade-oneweek(style="display: none;")
|
||||
p We only store one week of changes for free accounts. Upgrade for an unlimited history.
|
||||
p
|
||||
p We only store one week of changes for free accounts.
|
||||
p.show-when-owner Upgrade for an unlimited history.
|
||||
p.show-when-owner
|
||||
button.btn.btn-primary.start-free-trial Start free trial
|
||||
p.show-when-not-owner Please ask the project owner to upgrade.
|
||||
|
||||
script(type='text/template')#hotKeysListTemplate
|
||||
.hotkeys
|
||||
|
|
|
@ -86,6 +86,11 @@ define [
|
|||
else if @upgradeType == "one-week"
|
||||
@$el.find(".track-changes-upgrade-oneweek").show()
|
||||
|
||||
if @ide.project.get("owner") == @ide.user
|
||||
@$el.find(".show-when-not-owner").hide()
|
||||
else
|
||||
@$el.find(".show-when-owner").hide()
|
||||
|
||||
hide: () ->
|
||||
@ide.editor.enable()
|
||||
@ide.fileViewManager.enable()
|
||||
|
|
Loading…
Reference in a new issue