Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
a79bfcab
Commit
a79bfcab
authored
Apr 13, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Mobile] New licence type SuccessLimit.
parent
4bf47a6e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
apps/documenteditor/mobile/app/controller/Main.js
apps/documenteditor/mobile/app/controller/Main.js
+2
-2
apps/presentationeditor/mobile/app/controller/Main.js
apps/presentationeditor/mobile/app/controller/Main.js
+2
-2
apps/spreadsheeteditor/mobile/app/controller/Main.js
apps/spreadsheeteditor/mobile/app/controller/Main.js
+2
-2
No files found.
apps/documenteditor/mobile/app/controller/Main.js
View file @
a79bfcab
...
...
@@ -588,7 +588,7 @@ define([
me
.
permissions
.
review
=
(
me
.
permissions
.
review
===
undefined
)
?
(
me
.
permissions
.
edit
!==
false
)
:
me
.
permissions
.
review
;
me
.
appOptions
.
canAnalytics
=
params
.
asc_getIsAnalyticsEnable
();
me
.
appOptions
.
canLicense
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
);
me
.
appOptions
.
canLicense
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
||
licType
===
Asc
.
c_oLicenseResult
.
SuccessLimit
);
me
.
appOptions
.
isLightVersion
=
params
.
asc_getIsLight
();
/** coauthoring begin **/
me
.
appOptions
.
canCoAuthoring
=
!
me
.
appOptions
.
isLightVersion
;
...
...
@@ -617,7 +617,7 @@ define([
me
.
_state
.
licenseWarning
=
(
licType
===
Asc
.
c_oLicenseResult
.
Connections
)
&&
me
.
appOptions
.
canEdit
&&
me
.
editorConfig
.
mode
!==
'
view
'
;
me
.
appOptions
.
canBranding
=
params
.
asc_getCanBranding
(
)
&&
(
typeof
me
.
editorConfig
.
customization
==
'
object
'
);
me
.
appOptions
.
canBranding
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
)
&&
(
typeof
me
.
editorConfig
.
customization
==
'
object
'
);
me
.
applyModeCommonElements
();
me
.
applyModeEditorElements
();
...
...
apps/presentationeditor/mobile/app/controller/Main.js
View file @
a79bfcab
...
...
@@ -543,7 +543,7 @@ define([
me
.
permissions
.
review
=
(
me
.
permissions
.
review
===
undefined
)
?
(
me
.
permissions
.
edit
!==
false
)
:
me
.
permissions
.
review
;
me
.
appOptions
.
canAnalytics
=
params
.
asc_getIsAnalyticsEnable
();
me
.
appOptions
.
canLicense
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
);
me
.
appOptions
.
canLicense
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
||
licType
===
Asc
.
c_oLicenseResult
.
SuccessLimit
);
me
.
appOptions
.
isLightVersion
=
params
.
asc_getIsLight
();
/** coauthoring begin **/
me
.
appOptions
.
canCoAuthoring
=
!
me
.
appOptions
.
isLightVersion
;
...
...
@@ -572,7 +572,7 @@ define([
me
.
_state
.
licenseWarning
=
(
licType
===
Asc
.
c_oLicenseResult
.
Connections
)
&&
me
.
appOptions
.
canEdit
&&
me
.
editorConfig
.
mode
!==
'
view
'
;
me
.
appOptions
.
canBranding
=
params
.
asc_getCanBranding
(
)
&&
(
typeof
me
.
editorConfig
.
customization
==
'
object
'
);
me
.
appOptions
.
canBranding
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
)
&&
(
typeof
me
.
editorConfig
.
customization
==
'
object
'
);
me
.
applyModeCommonElements
();
me
.
applyModeEditorElements
();
...
...
apps/spreadsheeteditor/mobile/app/controller/Main.js
View file @
a79bfcab
...
...
@@ -573,7 +573,7 @@ define([
me
.
appOptions
.
canAnalytics
=
params
.
asc_getIsAnalyticsEnable
();
me
.
appOptions
.
isOffline
=
me
.
api
.
asc_isOffline
();
me
.
appOptions
.
canLicense
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
);
me
.
appOptions
.
canLicense
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
||
licType
===
Asc
.
c_oLicenseResult
.
SuccessLimit
);
me
.
appOptions
.
isLightVersion
=
params
.
asc_getIsLight
();
/** coauthoring begin **/
me
.
appOptions
.
canCoAuthoring
=
!
me
.
appOptions
.
isLightVersion
;
...
...
@@ -582,7 +582,7 @@ define([
me
.
appOptions
.
canChat
=
me
.
appOptions
.
canLicense
&&
!
me
.
appOptions
.
isOffline
&&
!
((
typeof
(
me
.
editorConfig
.
customization
)
==
'
object
'
)
&&
me
.
editorConfig
.
customization
.
chat
===
false
);
me
.
appOptions
.
canRename
=
!!
me
.
permissions
.
rename
;
me
.
appOptions
.
canBranding
=
(
licType
!==
Asc
.
c_oLicenseResult
.
Error
)
&&
(
typeof
me
.
editorConfig
.
customization
==
'
object
'
);
me
.
appOptions
.
canBranding
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
)
&&
(
typeof
me
.
editorConfig
.
customization
==
'
object
'
);
me
.
appOptions
.
canBrandingExt
=
params
.
asc_getCanBranding
()
&&
(
typeof
me
.
editorConfig
.
customization
==
'
object
'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment