import { OpenMode } from "@itwin/core-bentley" ; import { IModelConnection } from "@itwin/core-frontend" ; export function setTitle ( imodel ) { let prefix = "" ; if ( OpenMode . ReadWrite === imodel . openMode && imodel . isBriefcaseConnection ( ) ) prefix = imodel . editingScope ? "[ EDIT ] " : "[ R/W ] " ; document . title = `${ prefix }${ imodel . key } - Display Test App` ; }