Skip to content

Commit

Permalink
Merge pull request #60 from kufu/fixes/release1
Browse files Browse the repository at this point in the history
リリース用Fix
  • Loading branch information
kinoppyd committed Aug 30, 2021
2 parents 015d3a4 + 20ce825 commit 0fc9d99
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions app/controllers/plans_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def editable
flash[:error] = I18n.t('errors.password_incorrect')
head :unauthorized
end
rescue
flash[:error] = I18n.t('errors.password_incorrect')
head :unauthorized
end

def create
Expand Down
9 changes: 6 additions & 3 deletions app/javascript/components/PlanDescription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ export const PlanDescription: React.VFC<Props> = (props) => {
<Text size="S" color="TEXT_GREY">{i18n.notice}</Text>
</Stack>

<SecondaryButton size="s" prefix={<FaPencilAltIcon size={11}/>} onClick={() => setIsDialogOpen(true)}>
<Text size="S" weight="bold">{i18n.button}</Text>
</SecondaryButton>
{form ?
<SecondaryButton size="s" prefix={<FaPencilAltIcon size={11}/>} onClick={() => setIsDialogOpen(true)}>
<Text size="S" weight="bold">{i18n.button}</Text>
</SecondaryButton>
: null
}
</LineUp>
<DescriptionBase>
<Text>{description}</Text>
Expand Down

0 comments on commit 0fc9d99

Please sign in to comment.