Skip to content

Show reason for file in read-only#255

Open
diocas wants to merge 2 commits into
cernboxfrom
feat/add_open_reason
Open

Show reason for file in read-only#255
diocas wants to merge 2 commits into
cernboxfrom
feat/add_open_reason

Conversation

@diocas

@diocas diocas commented Jun 10, 2026

Copy link
Copy Markdown

Refactor the show banner code to re-use across the MS error and the new message.

If forced_viewmode_reason is set, we display it to the user.

image

https://its.cern.ch/jira/browse/CERNBOX-4353

diocas added 2 commits June 10, 2026 14:22
Extract the office connectivity banner into a shared showAlert
helper backed by a stacking alerts container, with consistent
icon, shadow and spacing so future banners can reuse it.
Displays response.data.forced_viewmode_reason from the app provider
in a warning alert, informing the user why the file was opened in a
restricted mode.
@diocas diocas requested review from Gerry-Cern and glpatcern June 10, 2026 12:28

@glpatcern glpatcern left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, even better than a modal popup!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants