Skip to content

Commit

Permalink
👔 Allow pro user to export story
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Sep 11, 2023
1 parent 7ace30d commit 9f41adf
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/common/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
"uploadPublicAssets": "use and upload shared assets",
"uploadPrivateAssets": "upload private assets",
"readAllOice": "read premium stories",
"exportOice": "export created stories for offline use",
"noLimitation": "read any time without cooldown",
"noAds": "ad free",
"memberExclusiveEvent": "backers only activities"
Expand Down
1 change: 1 addition & 0 deletions src/common/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
"uploadPublicAssets": "共有素材の使用とアップロード",
"uploadPrivateAssets": "プライベート素材の使用とアップロード",
"readAllOice": "プレミアムストーリーを読む",
"exportOice": "エクスポート作品のオフライン利用",
"noLimitation": "待ち時間なし",
"noAds": "広告なし",
"memberExclusiveEvent": "backer専用のイベントなど"
Expand Down
1 change: 1 addition & 0 deletions src/common/locales/zh-HK.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
"uploadPublicAssets": "使用及上載共享素材",
"uploadPrivateAssets": "上載私人素材",
"readAllOice": "閱讀所有視覺小說",
"exportOice": "匯出創作離線使用",
"noLimitation": "無需等待隨時暢閱",
"noAds": "全無廣告",
"memberExclusiveEvent": "會員專屬活動"
Expand Down
1 change: 1 addition & 0 deletions src/common/locales/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
"uploadPublicAssets": "使用及上載共享素材",
"uploadPrivateAssets": "上載私人素材",
"readAllOice": "閱讀所有視覺小說",
"exportOice": "匯出創作離線使用",
"noLimitation": "無需等待隨時暢閱",
"noAds": "全無廣告",
"memberExclusiveEvent": "會員專屬活動"
Expand Down
3 changes: 2 additions & 1 deletion src/editor/components/EditorPanel/Toolbar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import PublishIcon from 'common/icons/publish';
import SettingIcon from 'common/icons/setting';

import { getLocalUserItem } from 'common/utils/auth';
import { isNormalUser } from 'common/utils/user';

import USER_ROLE from 'common/constants/userRoles';

Expand Down Expand Up @@ -133,7 +134,7 @@ export default class EditorToolbar extends React.Component {
primary
onClick={this.handlePublishOiceButtonClick}
/>
{user.role === USER_ROLE.ADMIN &&
{!isNormalUser(user) &&
<RaisedButton
className="oice-export-button toolbar-button"
disabled={!oiceName}
Expand Down
4 changes: 4 additions & 0 deletions src/web/components/PricingTable/PricingTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ const FEATURE_LIST = [
key: 'readAllOice',
isFree: false,
},
{
key: 'exportOice',
isFree: false,
},
{
key: 'noLimitation',
isFree: false,
Expand Down

0 comments on commit 9f41adf

Please sign in to comment.