search_direction: Option<SearchDirection>,
last_search: Option<Regex>,
latest_read_index: Option<isize>,
+ our_account_id: String, // for reference when we don't have a Client
}
impl<Type: FileType, Source: FileDataSource> File<Type, Source> {
search_direction: None,
last_search: None,
latest_read_index,
+ our_account_id: client.our_account_id(),
}
}
fs
};
let fs = if Type::IS_EXAMINE_USER {
- fs.add(Pr('O'), "Options", 41)
+ let fs = fs.add(Pr('O'), "Options", 41);
+ if self.contents.source.single_id() == self.our_account_id
+ {
+ fs.add(Pr('V'), "View Errors", 1)
+ } else {
+ fs
+ }
} else {
fs
};
}
}
+ Pr('v') | Pr('V') => {
+ if Type::IS_EXAMINE_USER
+ && self.contents.source.single_id()
+ == self.our_account_id
+ {
+ LogicalAction::Goto(UtilityActivity::ErrorLog.into())
+ } else {
+ LogicalAction::Nothing
+ }
+ }
+
_ => LogicalAction::Nothing,
},
UIMode::ListSubmenu => match key {