diff options
author | 2019-04-08 16:40:44 +0200 | |
---|---|---|
committer | 2019-04-08 16:40:44 +0200 | |
commit | 827e4b7727e7f4abcb5472eb84c45c3f65efaf9c (patch) | |
tree | c86cd2d63b4ae98da73bfa1ef5e0dac16d489bf9 /src/components/settings/account | |
parent | Clean up (diff) | |
download | ferdium-app-827e4b7727e7f4abcb5472eb84c45c3f65efaf9c.tar.gz ferdium-app-827e4b7727e7f4abcb5472eb84c45c3f65efaf9c.tar.zst ferdium-app-827e4b7727e7f4abcb5472eb84c45c3f65efaf9c.zip |
Restore classic layout when user has no subscription
Diffstat (limited to 'src/components/settings/account')
-rw-r--r-- | src/components/settings/account/AccountDashboard.js | 47 |
1 files changed, 26 insertions, 21 deletions
diff --git a/src/components/settings/account/AccountDashboard.js b/src/components/settings/account/AccountDashboard.js index ca8b9e1bd..2a9c9a599 100644 --- a/src/components/settings/account/AccountDashboard.js +++ b/src/components/settings/account/AccountDashboard.js | |||
@@ -164,28 +164,33 @@ export default @observer class AccountDashboard extends Component { | |||
164 | </h2> | 164 | </h2> |
165 | {user.organization && `${user.organization}, `} | 165 | {user.organization && `${user.organization}, `} |
166 | {user.email} | 166 | {user.email} |
167 | <div className="manage-user-links"> | 167 | {user.isSubscriptionOwner && ( |
168 | <Button | 168 | <div className="manage-user-links"> |
169 | label={intl.formatMessage(messages.accountEditButton)} | 169 | <Button |
170 | className="franz-form__button--inverted" | 170 | label={intl.formatMessage(messages.accountEditButton)} |
171 | onClick={openEditAccount} | 171 | className="franz-form__button--inverted" |
172 | /> | 172 | onClick={openEditAccount} |
173 | {user.isSubscriptionOwner && ( | 173 | /> |
174 | <> | 174 | <Button |
175 | <Button | 175 | label={intl.formatMessage(messages.manageSubscriptionButtonLabel)} |
176 | label={intl.formatMessage(messages.manageSubscriptionButtonLabel)} | 176 | className="franz-form__button--inverted" |
177 | className="franz-form__button--inverted" | 177 | onClick={openBilling} |
178 | onClick={openBilling} | 178 | /> |
179 | /> | 179 | <Button |
180 | <Button | 180 | label={intl.formatMessage(messages.invoicesButton)} |
181 | label={intl.formatMessage(messages.invoicesButton)} | 181 | className="franz-form__button--inverted" |
182 | className="franz-form__button--inverted" | 182 | onClick={openInvoices} |
183 | onClick={openInvoices} | 183 | /> |
184 | /> | 184 | </div> |
185 | </> | 185 | )} |
186 | )} | ||
187 | </div> | ||
188 | </div> | 186 | </div> |
187 | {!user.isSubscriptionOwner && ( | ||
188 | <Button | ||
189 | label={intl.formatMessage(messages.accountEditButton)} | ||
190 | className="franz-form__button--inverted" | ||
191 | onClick={openEditAccount} | ||
192 | /> | ||
193 | )} | ||
189 | </div> | 194 | </div> |
190 | </div> | 195 | </div> |
191 | )} | 196 | )} |